<div id="view_client" class="zoom-anim-dialog view-booking-popup-edit relative" style="width:910px">                   

<!--<table class="customers-table">
  <tr>
    <td style="width: 70px;">
      ابحث عن
    </td>
    <td style="width: 6px;">
      :
    </td>
    <form name="searh-clients" id="search-clients" method="POST" action="">
    <td style="width: 120px;">
      <input type="email" class="small-input" name="search" id="from" />
    </td>
    <td style="width: 10px">
    </td>
		<td style="width: 100px">
      <input id="radio1" name="search-choice" value="0" checked="checked" type="radio">
      <label for="RadioButtonList1_0">رقم الإثبات</label>
    </td>
    <td style="width: 100px">
    <input id="RadioButtonList1_2" name="search-choice" value="1" type="radio">
    <label for="RadioButtonList1_2">جوال</label>
    </td>
    <td style="width: 100px"><div style="margin-top:0;float:none" class="search-botton">بحث</div>  </td>
    </form>
  </tr>
</table> -->
      <table class="customers-table">
          <tr class="customers-table-head">
            	<td width="160px"> رقم العقد </td>
                <td width="140px"> أسم الوحدة </td>
                <td width="100px"> أسم العميل </td>
                <td width="110px">العمليات</td>
            </tr>
           
                <?php if(!empty($contracts)) { ?>
                <?php foreach($contracts as $contract) {?>

                <tr class="cell-parent">
                
                    <td id="contract_id"><?php echo $contract['contract_id']; ?>  </td>
                    <td id="" ><?php echo $contract['apartment_name'] ;?></td>
                    <td id="client_name">
                    <?php
                      if(!empty($contract['related_company']))
                        echo $contract['name'] . '-' . $contract['related_company'];
                      else
                        echo $contract['name'];
                    ?>
                    </td>
                    <td ><a href="#" style="color:#000" class="chosen-contract" id="<?php echo $contract['contract_id']; ?>">أختر</a></td>
                </tr>
                <?php  }
                }else{
                  echo "<td colspan='4' class='red large' align=''>لا توجد نتائج</td>";
                } ?>
              
        </table>
</div>